
import Executor from "../../../executor";

export default (main:Executor,id:string,c:any) => {
    const data = main.getCellData(id);
    const { ctx, exp } = data;
    // 
    const context = main.createContext(c,ctx);
    const md = main.eval(exp,context);
    context.$md = md;

    return main.Cells.next(id,context)
}